package com.three.usermanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.three.core.entity.Menu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author liuliyuan
* @description 针对表【tb_menu(菜单权限表)】的数据库操作Mapper
* @createDate 2025-03-11 18:41:17
* @Entity com.lly.entity.Menu
*/
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    List<Integer> selectMenuIdsByRoleId(@Param("roleId") Integer roleId);

    List<Menu> selectAll();
    int batchInsertRoleMenus(@Param("roleId") Integer roleId, @Param("menuIds") List<Integer> menuIds);
    int deleteRoleMenusByRoleId(@Param("roleId") Integer roleId);
}
